#!/bin/bash
# The wineX regapi wrapper

# Kindly distributed by Martin Schlemmer
# Modified by phoen][x

export INSTALLDIR="/usr/lib/winex-cvs"

export WINEPREFIX="$HOME/.winex-cvs"

export LD_LIBRARY_PATH="$INSTALLDIR/lib/wine:$INSTALLDIR/lib:$LD_LIBRARY_PATH"
export WINEDLLPATH="$LD_LIBRARY_PATH"

export WINE_LOADER=wine

export RUNWINE="$INSTALLDIR/bin/wine" 
export REGAPI="$INSTALLDIR/bin/regapi" 

if([ -z ${1} ]) then
	echo "Usage: regedit-winex-cvs foo.reg"
else
	"$REGAPI" setValue < ${1} &> /dev/null
fi
